package com.acme.task4;

public class Task4Arrays {
    public static final String NUM_3 = "Number of 3: ";
    public static final String NUM_7 = "Number of 7: ";
    public static final String NUM_9 = "Number of 9: ";

    public static void main(String[] args) {
        int array[] = {3, 7, 3, 9, 3, 7, 9, 9, 3, 7};
        int n_3 = 0;
        int n_7 = 0;
        int n_9 = 0;

        for (int i : array) {
            switch (i) {
                case 3:
                    n_3++;
                    break;
                case 7:
                    n_7++;
                    break;
                case 9:
                    n_9++;
                    break;
            }
        }

        System.out.println(NUM_3 + n_3);
        System.out.println(NUM_7 + n_7);
        System.out.println(NUM_9 + n_9);
    }
}
